
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Date&Time · Restack-Mobile</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="Form_Button.html" />
    
    
    <link rel="prev" href="Color.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="" target="_blank" class="custom-link">Restack-Mobile</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    RESTACK套件简介
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">SDK使用</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../INSTALLATION.html">
            
                <a href="../INSTALLATION.html">
            
                    
                    SDK安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../CREATE_PROJ.html">
            
                <a href="../CREATE_PROJ.html">
            
                    
                    创建项目
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../Production.html">
            
                <a href="../Production.html">
            
                    
                    生产环境运行
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../Development.html">
            
                <a href="../Development.html">
            
                    
                    开发环境运行
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">SDK详细说明</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../Menu.html">
            
                <a href="../Menu.html">
            
                    
                    推荐目录结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../ConfigIntro.html">
            
                <a href="../ConfigIntro.html">
            
                    
                    项目配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="../CONFIG_INFO.html">
            
                <a href="../CONFIG_INFO.html">
            
                    
                    SDK默认配置一览
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">restack-core开发文档</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../Frame.html">
            
                <a href="../Frame.html">
            
                    
                    框架组成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="../WHYUS.html">
            
                <a href="../WHYUS.html">
            
                    
                    Why us?
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="../FastBuid.html">
            
                <a href="../FastBuid.html">
            
                    
                    快速开发指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="../AppConfig.html">
            
                <a href="../AppConfig.html">
            
                    
                    框架初始化配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="../MODEL.html">
            
                <a href="../MODEL.html">
            
                    
                    框架模型api
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">mobiscroll组件文档</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="INTRODUCE.html">
            
                <a href="INTRODUCE.html">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="Calendar.html">
            
                <a href="Calendar.html">
            
                    
                    Calendar
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="Event Calendar.html">
            
                <a href="Event Calendar.html">
            
                    
                    Event Calendar
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="Color.html">
            
                <a href="Color.html">
            
                    
                    Color
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="5.5" data-path="Date&Time.html">
            
                <a href="Date&Time.html">
            
                    
                    Date&Time
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.6" data-path="Form_Button.html">
            
                <a href="Form_Button.html">
            
                    
                    Button
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.7" data-path="Form_Checkbox.html">
            
                <a href="Form_Checkbox.html">
            
                    
                    Checkbox
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.8" data-path="Form_Progress.html">
            
                <a href="Form_Progress.html">
            
                    
                    Progress
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.9" data-path="Form_Radiobuttons.html">
            
                <a href="Form_Radiobuttons.html">
            
                    
                    RadioButton
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.10" data-path="Form_Select.html">
            
                <a href="Form_Select.html">
            
                    
                    Form_Select
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.11" data-path="Form_Stepper.html">
            
                <a href="Form_Stepper.html">
            
                    
                    Stepper
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.12" data-path="Form_Switch.html">
            
                <a href="Form_Switch.html">
            
                    
                    Switch
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.13" data-path="Form_Textfields.html">
            
                <a href="Form_Textfields.html">
            
                    
                    TextField
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.14" data-path="Forms_slider.html">
            
                <a href="Forms_slider.html">
            
                    
                    Slider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.15" data-path="Form_DateSilder.html">
            
                <a href="Form_DateSilder.html">
            
                    
                    DateSlider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.16" data-path="FormsSegmented.html">
            
                <a href="FormsSegmented.html">
            
                    
                    Segmented
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.17" data-path="Image.html">
            
                <a href="Image.html">
            
                    
                    Image
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.18" data-path="ListView.html">
            
                <a href="ListView.html">
            
                    
                    ListView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.19" data-path="Measurement.html">
            
                <a href="Measurement.html">
            
                    
                    Measurement
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.20" data-path="MenuStrip.html">
            
                <a href="MenuStrip.html">
            
                    
                    MenuStrip
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.21" data-path="Number.html">
            
                <a href="Number.html">
            
                    
                    Number
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.22" data-path="Numpad.html">
            
                <a href="Numpad.html">
            
                    
                    Numpad
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.23" data-path="Range.html">
            
                <a href="Range.html">
            
                    
                    Range
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.24" data-path="Rating.html">
            
                <a href="Rating.html">
            
                    
                    Rating
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.25" data-path="Scroller.html">
            
                <a href="Scroller.html">
            
                    
                    Scroller
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.26" data-path="Select.html">
            
                <a href="Select.html">
            
                    
                    Select
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.27" data-path="Timer.html">
            
                <a href="Timer.html">
            
                    
                    Timer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.28" data-path="Timespan.html">
            
                <a href="Timespan.html">
            
                    
                    Timespan
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.29" data-path="Treelist.html">
            
                <a href="Treelist.html">
            
                    
                    Treelist
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.30" data-path="Widget.html">
            
                <a href="Widget.html">
            
                    
                    Widget
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Date&Time</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="date--time">Date &amp; Time</h1>
<h4 id="&#x7B80;&#x4ECB;">&#x7B80;&#x4ECB;</h4>
<p>Datetime&#x662F;&#x4E00;&#x4E2A;&#x9009;&#x62E9;&#x65E5;&#x671F;&#x4E0E;&#x65F6;&#x95F4;&#x7684;&#x7EC4;&#x4EF6;&#xFF0C;&#x901A;&#x8FC7;&#x6EDA;&#x52A8;&#x6761;&#x9009;&#x62E9;&#x65E5;&#x671F;&#x548C;&#x65F6;&#x95F4;&#xFF0C;&#x7EC4;&#x5408;&#x6210;&#x4E00;&#x4E2A;&#x5177;&#x4F53;&#x65E5;&#x671F;&#x65F6;&#x95F4;&#xFF0C;&#x800C;&#x4E14;&#x53EF;&#x9009;&#x62E9;&#x591A;&#x79CD;&#x65E5;&#x671F;&#x683C;&#x5F0F;&#x3002;</p>
<h4 id="&#x57FA;&#x672C;&#x7528;&#x6CD5;">&#x57FA;&#x672C;&#x7528;&#x6CD5;</h4>
<p>Datetime&#x7EC4;&#x4EF6;&#x4E2D;&#x5305;&#x542B;&#x4E09;&#x4E2A;&#x7EC4;&#x4EF6;:<code>&lt;mobiscroll.Date /&gt;</code>&#xFF0C; <code>&lt;mobiscroll.Time /&gt;</code>&#xFF0C; <code>&lt;mobiscroll.Datetime /&gt;</code>&#x3002;
&#x9ED8;&#x8BA4;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x5B83;&#x5C06;&#x88AB;&#x4F20;&#x9012;&#x5230;&#x6E32;&#x67D3;&#x51FA;&#x6765;&#x7684;input&#x6807;&#x7B7E;&#x4E2D;&#xFF0C;&#x5E76;&#x4E14;Datetime&#x7EC4;&#x4EF6;&#x652F;&#x6301;&#x7684;&#x5C5E;&#x6027;&#x5982;&#x4E0B;&#xFF1A;</p>
<table>
<thead>
<tr>
<th style="text-align:center">&#x5C5E;&#x6027;</th>
<th style="text-align:center">&#x7C7B;&#x578B;</th>
<th style="text-align:center">&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">value</td>
<td style="text-align:center">date</td>
<td style="text-align:center">&#x5728;&#x6EDA;&#x52A8;&#x8F74;&#x83DC;&#x5355;&#x5DF2;&#x9009;&#x4E2D;&#x7684;&#x65E5;&#x671F;</td>
</tr>
<tr>
<td style="text-align:center">className</td>
<td style="text-align:center">string</td>
<td style="text-align:center">&#x7528;&#x4E8E;&#x9700;&#x8981;&#x88AB;&#x6E32;&#x67D3;&#x7684;input&#x7EC4;&#x4EF6;&#x589E;&#x52A0;css&#x5C5E;&#x6027;</td>
</tr>
<tr>
<td style="text-align:center">readonly</td>
<td style="text-align:center">string</td>
<td style="text-align:center">&#x5B83;&#x5C06;&#x88AB;&#x4F20;&#x9012;&#x5230;&#x6E32;&#x67D3;&#x51FA;&#x6765;&#x7684;input&#x6807;&#x7B7E;&#x4E2D;&#xFF0C;&#x82E5;&#x4E3A;true&#xFF0C;&#x5219;&#x8BE5;&#x7EC4;&#x4EF6;&#x5C5E;&#x6027;&#x4E3A;&#x53EA;&#x8BFB;</td>
</tr>
<tr>
<td style="text-align:center">disabled</td>
<td style="text-align:center">bool</td>
<td style="text-align:center">&#x5B83;&#x5C06;&#x88AB;&#x4F20;&#x9012;&#x5230;&#x6E32;&#x67D3;&#x51FA;&#x6765;&#x7684;input&#x6807;&#x7B7E;&#x4E2D;&#xFF0C;&#x82E5;&#x4E3A;true&#xFF0C;&#x5219;&#x8BE5;&#x7EC4;&#x4EF6;&#x5C5E;&#x6027;&#x4E3A;&#x7981;&#x7528;</td>
</tr>
<tr>
<td style="text-align:center">placeholder</td>
<td style="text-align:center">string</td>
<td style="text-align:center">&#x5B83;&#x5C06;&#x88AB;&#x4F20;&#x9012;&#x5230;&#x6E32;&#x67D3;&#x51FA;&#x6765;&#x7684;input&#x6807;&#x7B7E;&#x4E2D;&#xFF0C;&#x663E;&#x793A;&#x5BF9;&#x5E94;&#x7684;&#x63D0;&#x793A;&#x6587;&#x5B57;</td>
</tr>
</tbody>
</table>
<p>&#x66F4;&#x591A;&#x5C5E;&#x6027;&#x53C2;&#x6570;&#x8BF7;&#x53C2;&#x8003;&#xFF1A;<a href="https://docs.mobiscroll.com/3-0-0_beta6/react/datetime#options" target="_blank">&#x53EF;&#x9009;&#x53C2;&#x6570;</a></p>
<p>&#x4EE3;&#x7801;&#x793A;&#x4F8B;&#xFF1A;</p>
<pre><code>&lt;mobiscroll.Date 
    value={this.state.myBirthday} 
    onSet={this.setBirthday} 
    theme=&apos;ios&apos; 
    placeholder={&apos;click me&apos;} 
/&gt;
</code></pre><h4 id="&#x7EC4;&#x4EF6;&#x6548;&#x679C;&#x56FE;">&#x7EC4;&#x4EF6;&#x6548;&#x679C;&#x56FE;</h4>
<!--![](./images/date-time-component.png =180x)-->
<p><img src="images/date-time-component.png" width="50%"></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="Color.html" class="navigation navigation-prev " aria-label="Previous page: Color">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="Form_Button.html" class="navigation navigation-next " aria-label="Next page: Button">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Date&Time","level":"5.5","depth":1,"next":{"title":"Button","level":"5.6","depth":1,"path":"mobiscroll/Form_Button.md","ref":"mobiscroll/Form_Button.md","articles":[]},"previous":{"title":"Color","level":"5.4","depth":1,"path":"mobiscroll/Color.md","ref":"mobiscroll/Color.md","articles":[]},"dir":"ltr"},"config":{"plugins":["theme-comscore","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"livereload":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-comscore":{},"theme-api":{"languages":[{"lang":"js","name":"JavaScript","default":true}]},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageBreaksBefore":"/","headerTemplate":null,"paperSize":"a4","margin":{"right":62,"left":62,"top":36,"bottom":36},"fontSize":12,"fontFamily":"Arial","footerTemplate":null,"chapterMark":"pagebreak","pageNumbers":false},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"isbn":"","variables":{},"title":"Restack-Mobile","links":{"sharing":{"all":null,"facebook":null,"google":null,"twitter":null,"weibo":null},"sidebar":{"Restack-Mobile":""}},"gitbook":"*","description":null,"extension":null},"file":{"path":"mobiscroll/Date&Time.md","mtime":"2016-12-08T04:21:43.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2016-12-08T04:17:17.070Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

